package com.whli.autumn.mall.metadata.domain.dto.productinfo;

import com.whli.autumn.core.extend.domain.dto.BaseUpdateDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

/**
 * <p>商品信息修改参数</p>
 *
 * @author whli
 * @version 1.0.0
 * @since 2023-04-09 09:32
 */
@ApiModel(description = "商品信息修改参数")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ProductInfoUpdateDTO extends BaseUpdateDTO {

    @ApiModelProperty(value = "商品分类")
    @NotBlank(message = "商品分类不能为空")
    private String category;

    @ApiModelProperty(value = "商品编码")
    @NotBlank(message = "商品编码不能为空")
    private String code;

    @ApiModelProperty(value = "商品描述")
    @NotBlank(message = "商品描述不能为空")
    private String name;

    @ApiModelProperty(value = "商品规格")
    private String spec;

    @ApiModelProperty(value = "商品型号")
    private String model;

    @ApiModelProperty(value = "商品封面")
    private String coverImg;

    @ApiModelProperty(value = "商品单位")
    private String unit;

    @ApiModelProperty(value = "商品单价")
    private BigDecimal unitPrice;

}
